package com.android.cl.coludtf.activity.webview.dsbridge;

import android.webkit.JavascriptInterface;

import org.json.JSONException;


/**
 * 封装被调用的方法，同步和异步
 * Created by lei-chen on 2020/05/22.
 */
public class JsEchoApi {

    @JavascriptInterface
    public Object syn(Object args) throws JSONException {
        return args;
    }

    @JavascriptInterface
    public void asyn(Object args, CompletionHandler handler) {
        handler.complete(args);
    }
}